/**
 * 所有版权归 广西梧州 陈锦韬 所有
 *
 * @Title: IUserDetailsService
 * @Package com.rx.core.iface
 * @Description: 自定义
 * @author: 陈锦韬
 * @date: 2021\6\28 0028
 * @version V1.0
 * @Copyright: 2021 陈锦韬  All rights reserved.
 */
package com.rx.core.iface;

import org.springframework.security.core.userdetails.UserDetails;
import org.springframework.security.core.userdetails.UserDetailsService;
import org.springframework.security.core.userdetails.UsernameNotFoundException;

/**
 * @author: Administrator
 * @Description: 自定义
 * @date: 2021\6\28 0028
 */
public interface IUserDetailsService extends UserDetailsService {
    /**
     * 根据不同的登录类型做不同的查询。username 可以是用户、手机、邮箱
     * @param username
     * @param loginClass
     * @return
     * @throws UsernameNotFoundException
     */
    UserDetails loadUserByLoginClass(String username,String loginClass) throws UsernameNotFoundException;
}
